package com.dragee.modules.work.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 分数
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-05-10 16:54:04
 */
@Data
@TableName("t_apply_score")
public class ApplyScoreEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;
    /**
     * 比赛id
     */
    @ExcelProperty(value = "比赛id")
    @FieldDispose(value = "competitionId")
        private String competitionId;
    /**
     * 场次id
     */
    @ExcelProperty(value = "场次id")
    @FieldDispose(value = "orderId")
        private String orderId;
    /**
     * 报名项目id
     */
    @ExcelProperty(value = "报名项目id")
    @FieldDispose(value = "applyProjectId")
        private String applyProjectId;
    /**
     * 裁判主键
     */
    @ExcelProperty(value = "裁判主键")
    @FieldDispose(value = "refereeId")
        private String refereeId;
    /**
     * 身份证
     */
    @ExcelProperty(value = "身份证")
    @FieldDispose(value = "idCard")
        private String idCard;
    /**
     * 名字
     */
    @ExcelProperty(value = "名字")
    @FieldDispose(value = "name")
        private String name;
    /**
     * 裁判类型
     */
    @ExcelProperty(value = "裁判类型")
    @FieldDispose(value = "type")
        private String type;
    /**
     * 分数
     */
    @ExcelProperty(value = "分数")
    @FieldDispose(value = "score")
    private BigDecimal score;

    /**
     * 分数
     */
    @ExcelProperty(value = "减法")
    @FieldDispose(value = "subScore")
    private BigDecimal subScore;


    private BigDecimal addScore;
    private BigDecimal reduceScore;
    private BigDecimal averageScore;
    private BigDecimal sightScore;

    private String status;
    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long sort;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;
    }